package com.chinacoal.microservice.impl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chinacoal.microservice.model.organization.OrgOrganization;

/**  
 * @Package: com.chinacoal.microservice.impl.mapper.ProcessMapper
 * @ClassName: RestSysMapper
 * @ClassDesc: 外部系统调用Mapper
 * @Createby: sunh
 * @CreatedDate: 2019-11-29 09:14:34
 */
public interface RestSysMapper {

	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.RestSysMapper.getOrgIdByOrgCode
	 * @MethodName: getOrgIdByOrgCode
	 * @MethodDesc: 根据组织编码获取组织
	 * @ParamList: {
	 *				 @param orgCode
	 *			   }
	 * @Createby: sunh
	 * @CreatedDate: 2020-03-16 19:24:07
	 */
	public OrgOrganization getOrgIdByOrgCode(@Param("orgCode") String orgCode);
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.RestSysMapper.getOrgByEmpId
	 * @MethodName: getOrgByEmpId
	 * @MethodDesc: 获取员工所属组织
	 * @ParamList: {
	 *				 @param empId
	 *				 @param rootOrgId
	 *			   }
	 * @Createby: sunh
	 * @CreatedDate: 2020-03-16 19:24:07
	 */
	public List<OrgOrganization> getOrgByEmpId(@Param("empId") Integer empId, @Param("rootOrgId") Integer rootOrgId);
}
